package com.sabastian.gateway.executor;

import com.sabastian.gateway.executor.result.GatewayResult;
import com.sabastian.gateway.mapping.HttpStatement;

import java.util.Map;

/**
 * @author Ciel Phantomhive
 * @description
 * @date 2022/10/15 16:38
 */
public interface Executor {

    /**
     * 执行器接口，所有的会话请求都通过执行器完成
     */
    GatewayResult exec(HttpStatement httpStatement, Map<String, Object> params);

}
